package ua.com.bitlab.figures;

import javax.swing.*;
import java.awt.*;

/**
 * User: Roman Boyarsky
 * Date: 4/10/12
 */
public class Main {

    public static void createGUI() {
//        JFrame.setDefaultLookAndFeelDecorated(true);
        JFrame frame = new JFrame("Figures");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);


        frame.setPreferredSize(new Dimension(300, 300));
        frame.pack();
        frame.setVisible(true);
    }

    public void paint(Graphics g) {
        g.drawLine(0, 0, 100, 100);
    }

    public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createGUI();
            }
        });
    }
}
